package ConstPool;

public class Test {
	public static void main(String[] args) {
		String hello = "Hello", lo = "lo";
		System.out.print((hello == "Hello") + " ");
		System.out.print((Other.hello == hello) + " ");
		System.out.print((ConstPool.other.Other.hello == hello) + " ");
		System.out.print((hello == ("Hel"+"lo")) + " ");
		System.out.print((hello == ("Hel"+lo)) + " ");
		System.out.println(hello == ("Hel"+lo).intern());
		
		Integer i = -129;
		Integer i1 = -129;
		System.out.println(i==i1);
	}
}

class Other { 
	static String hello = "Hello"; 
}
